<template>
  <div class="like">
    我喜欢的音乐
    <div class="music" v-for="item in songList" :key="item.id">
      <span>{{ item.ids }}</span>
    </div>
  </div>
</template>

<script>
import { reqLike } from "../../../api/user";
export default {
  name: "Like",
  components: {},
  data() {
    return {
      id: "",
      songList: [],
    };
  },
  computed: {},
  watch: {},

  methods: {
    async getSong(id) {
      const res = await reqLike(id);
      console.log(res.data);
      this.songList = res.data;
      console.log(this.songList);
    },
  },
  created() {
    this.getSong();
  },
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
};
</script>
<style scoped></style>
